
<?php $form=$this->beginWidget('DwzActiveForm', array(
	'id'=>'website-form',
	'enableAjaxValidation'=>false,
	'htmlOptions'=>array(
		'class'=>'pageForm required-validate',
		'onsubmit'=>'return iframeCallback(this,dialogAjaxDone)',
		'enctype'=>'multipart/form-data',
	),
)); ?>

<script type="text/javascript">
/*<![CDATA[*/
	function website_form(form){
		<?php echo $_REQUEST['target']=='navTab'? 'navTab': '$.pdialog';?>.reload(form.action, $(form).serializeArray());
		return false;
	}
/*]]>*/
</script>
<style>.alert .alertInner .msg{max-height:600px;overflow:visible;}</style>
	<div class="form pageFormContent" layoutH="55">
		<?php echo CHtml::errorSummary($model); ?>

		<div class="row">
			<?php echo $form->labelEx($model,'name'); ?>
			<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>64)); ?>
			<?php echo $form->error($model,'name'); ?>
		</div>

		<div class="row">
			<?php echo $form->labelEx($model,'value'); ?>
			<?php echo $form->textField($model,'value',array('size'=>60,'maxlength'=>255)); ?>
			<?php echo $form->error($model,'value'); ?>
		</div>

		<div class="row">
			<?php echo $form->labelEx($model,'autoload'); ?>
			<?php echo $form->textField($model,'autoload'); ?>
			<?php echo $form->error($model,'autoload'); ?>
		</div>

			</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent">
				<button type="submit"><?php echo $model->isNewRecord ? Yii::t('admin','Create') : Yii::t('admin','Update'); ?>
</button>
			</div></div></li>
			<li>
				<div class="button"><div class="buttonContent">
					<button onclick="<?php echo $_REQUEST['target']=='navTab'? 'navTab.closeCurrentTab()': '$.pdialog.closeCurrent()';?>" type="Button"><?php echo Yii::t('admin','Cancel'); ?>
</button>
				</div></div>
			</li>
		</ul>
	</div>
<?php $this->endWidget(); ?>
